package com.example.prison.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.prison.entity.AreaManagement;
import com.github.pagehelper.PageInfo;

/**
* @author jiang
* @description 针对表【area_management】的数据库操作Service
* @createDate 2023-05-26 17:15:28
*/
public interface AreaManagementService extends IService<AreaManagement> {

    PageInfo<AreaManagement> getAreaRealtimeState(int pageNumber, int pageSize);

    PageInfo<AreaManagement> get(int pageNumber, int pageSize);

    PageInfo<AreaManagement> getAllArea(int pageNumber, int pageSize);

    PageInfo<AreaManagement> getSentryPostArea(int pageNumber, int pageSize);

    int add(AreaManagement area);

    int addSentryPost(AreaManagement area);

    Integer delete(Integer[] ids);

    Integer deleteBySection(String defenseSection);

    int updateArea(AreaManagement area, Integer id);

    int updateAreaName(AreaManagement area, Integer id);

    int updateAreaVol(AreaManagement area, Integer id);

    AreaManagement getById(Integer id);

    PageInfo<AreaManagement> getBySection(int pageNumber, int pageSize, String defenseSection);

    PageInfo<AreaManagement> getByPoint(int pageNumber, int pageSize, String defenseSectionPoint);

    PageInfo<AreaManagement> getBySectionAndPoint(int pageNumber, int pageSize, String defenseSection, String defenseSectionPoint);

    PageInfo<AreaManagement> getBySentryPost(int pageNumber, int pageSize, String sentryPost);

    PageInfo<AreaManagement> getByAlarmStatus(int pageNumber, int pageSize, String alarmStatus);

}
